﻿import AddChartMq from "@/pages/AddChartMq";

export default [
  { name:'登录', path: '/user', layout: false, routes: [{ path: '/user/login', component: './User/Login' }] },
  { name:'注册', path: '/user', layout: false, routes: [{ path: '/user/register', component: './User/Register' }] },
  { name:'', path: '/', redirect: '/add_chart' },
  {name: '智能分析', path: '/add_chart', icon: 'barChart' , component: './AddChart'},
  {name: '智能分析异步', path: '/add_chart_async', icon: 'barChart' , component: './AddChartAsync'},
  {name: '智能分析Mq', path: '/add_chart_mq', icon: 'barChart' , component: './AddChartMq'},
  {name: '我的图表', path: '/my_chart', icon: 'pieChart' , component: './MyChart'},
  {
    name:'管理页',
    path: '/admin',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { name:'', path: '/admin', redirect: '/admin/sub-page' },
      { name:'二级管理页', path: '/admin/sub-page', component: './Admin' },
    ],
  },
  { path: '/', redirect: '/welcome' },
  { path: '*', layout: false, component: './404' },
];
